﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using EC_DataBase;

namespace EasyCheque.Welcome
{
    public partial class RegisterComplete : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["RegIDCARD"] == null)
            {
                Response.Redirect("~/Default.aspx");
            }

            if (Session["secCode"] == null)
            {
                Response.Redirect("~/Default.aspx");
            }

            System.Diagnostics.Debug.WriteLine("RegIDCARD SESSION: " + Session["RegIDCARD"]);
            TextBox_IDCARD.Text = Session["RegIDCARD"].ToString();
            TextBox_SecCode.Text = Session["secCode"].ToString();

        }

        protected void Button_Register_Click(object sender, EventArgs e)
        {
            Session["secCode"] = null;
            Response.Redirect("~/Welcome/ApplyForCertificate.aspx");
        }
    }
}
